
#import "ShareManager.h"
#import "ShareView.h"

@interface ShareManager ()
@property(nonatomic,strong) id  shareSource;
@property(nonatomic,strong) UIViewController * presentingController;
@property(nonatomic,strong) ShareView * shareView;

@end

@implementation ShareManager

+ (instancetype)sharedManager{
    static id instance;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        instance = [[self alloc]init];
    });
    return instance;
}

- (instancetype)init{
    if (self = [super init]) {
    [ShareView sharedShareBoard].shareViewDelegate = self;
    }
    return self;
}

- (void)showShareBoardWithSource:(id)source PresentController:(UIViewController*)presentingController{
    _presentingController =  presentingController;
 
    [self.shareView show];
}


- (void)shareTo:(NSString*)platform{
    
// Share code
    
}



- (ShareView *)shareView{
    return [ShareView sharedShareBoard];
}

@end
